import {createRouter, createWebHistory} from 'vue-router'

const routes = [
    {
        path: '/login',
        name: 'login',
        component: import("../views/Login")
    },

    {
        path: '/',
        name: 'layout',
       component: import("@/views/BaseLayout"),
        children:[
            {
        path: '/',
        name: 'index',
        component: import("../views/Index")
    },
        ]
    },


]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
